package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.Map;

/**
 * 制版详情对象 mes_platemaking_detail
 * 
 * @author wxt
 * @date 2024-02-03
 */
@Data
public class MesPlatemakingDetail extends BaseEntity
{
   // private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 制版主表id */
    private Long platemakingId;

    /** 生产单印刷表id */

    private String producePrintId;

    @Excel(name = "状态", combo = {"未提交","已提交"}, readConverterExp ="1=未提交,2=已提交")
    private String status;
    //制版编号
    @Excel(name = "单据编号")
    private String platemakingCode;
    @TableField(exist = false)
    @Excel(name = "车间")
    private String workshopName;
    //新/旧版
    @Excel(name = "新/旧版")
    private String isNew;
    @Excel(name = "做版日期",width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date makeDate; //做版日期
    //生产单编号
    @Excel(name = "生产单编码")
    private String produceNo;
    @Excel(name = "出版编号")
    //出版编号
    private String pubNo;
    //书刊编码
    @Excel(name = "书刊编码")
    private String bookNo;
    //书刊名称
    @Excel(name = "书刊名称")
    private String bookName;
    //印刷序列号
    @Excel(name = "印刷序列号")
    private String printProduceNo;
    //品种
    @Excel(name = "品种")
    private String breed;
    //组成
    @Excel(name = "组成")
    private String composition;
    //印张
    @Excel(name = "印张")
    private String sheet;
    //印数
    @Excel(name = "印数")
    private Double printAmount;
    //印色
    @Excel(name = "印色", readConverterExp = "1=1+1,2=2+0,3=2+1,4=2+2,5=3+0,6=3+1,7=4+0,8=4+1,9=4+2,10=4+3,11=4+4,13=1+0")
    private String printColour;
    //板材数量
    @Excel(name = "板材数量")
    private Double sheetAmount;
    /** 制版数量 */
    @Excel(name = "制版数量")
    private Long platemakingNumber;
    //板材尺寸
    @Excel(name = "版材尺寸", readConverterExp = "1=920*760,10=390*290,3=880*630,9=880*640,8=930*721,6=1030*790,4=1030*800,7=1050*800,5=1055*811")
    private String sheetSize;
    @Excel(name = "做版人")
    private String makeUser; //做版人
    //制版人
    @Excel(name = "制版人")
    private String platemakingBy;
    //烤版人
    @Excel(name = "烤版人")
    private String bakedBy;
    //制版日期
    @Excel(name = "制版日期",width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date platemakingDate;
    @Excel(name = "取版人")
    private String takeUser;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "取版时间",width = 30, dateFormat = "yyyy-MM-dd")
    private Date takeDate;


    private Long platemakingTotal;

    //制版序列号
    @Excel(name = "制版序列号")
    private String platemakingNo;
    //板材合计
    private Double sheetTotal;
    //生产单状态
    private Long produceStatus;



    @TableField(exist = false)
    private String type;

    @TableField(exist = false)
    private String detailId;

    private Map<String,String> where;


    //生产单id
    private String produceId;



    @TableField(exist = false)
    private String workshopId;


}
